package com.yowasa.xiuxian.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.yowasa.xiuxian.entity.po.ExploreBattleLog;
import com.yowasa.xiuxian.entity.po.SacrificeLog;
import com.yowasa.xiuxian.entity.po.XiuXianExploreResource;
import com.yowasa.xiuxian.entity.po.XiuXianExploreUser;
import org.apache.ibatis.annotations.Param;

;import java.util.List;

/**
 * @Author autoGen
 * @Description 修仙资源信息Mapper
 */
public interface XiuxianExploreUserMapper extends MPJBaseMapper<XiuXianExploreUser> {
    List<XiuXianExploreUser> selectLocalUserByMapId(@Param("mapId") Integer mapId,@Param("accId") Long accountId);

    void refreshExploreResource();

    void insertSacrifice(@Param("sacrifice") SacrificeLog sacrificeLog);

    Integer countSacrificeByStage(@Param("accountId") Long id,@Param("stage") Integer stage);

    Integer countSacrificeByWeek(@Param("accountId") Long id);

    void insertBattleLog(@Param("battleLog") ExploreBattleLog battleLog);

    List<ExploreBattleLog> selectBattleLogList(@Param("accountId") Long id,@Param("page") Integer offset);
}
